// Package member
// @Link  https://github.com/bufanyun/hotgo
// @Copyright  Copyright (c) 2023 HotGo CLI
// @Author  Ms <133814250@qq.com>
// @License  https://github.com/bufanyun/hotgo/blob/master/LICENSE
package v1

import (
	"github.com/gogf/gf/v2/frame/g"
	"hotgo/internal/model/input/adminin"
	"hotgo/internal/model/input/apiin"
	"hotgo/internal/model/input/form"
)

// 微信小程序登录
type WxMiniLoginReq struct {
	g.Meta `path:"/member/wxMiniLogin" method:"post" tags:"用户" summary:"微信小程序登录"`
	apiin.AppLoginInp
}

type WxMiniLoginRes struct {
	*adminin.LoginModel
}

// 获取登录用户信息
type InfoReq struct {
	g.Meta `path:"/member/info" method:"get" tags:"用户" summary:"获取登录用户信息"`
}

type InfoRes struct {
	*adminin.LoginMemberInfoModel
}

// 修改用户信息
type UpdateInfoReq struct {
	g.Meta `path:"/member/update" method:"post" tags:"用户" summary:"修改用户信息"`
	apiin.MemberUpdateInfoInp
}

type UpdateInfoRes struct {
}

// 用户轮播动态信息
type CarouselDynamicReq struct {
	g.Meta `path:"/member/carouselDynamic" method:"get" tags:"用户" summary:"用户轮播动态信息"`
}

type CarouselDynamicRes struct {
	List []*apiin.CarouselDynamicModel `json:"list" dc:"数据列表"`
}

// 团队人数
type TeamCountReq struct {
	g.Meta `path:"/member/teamCount" method:"get" tags:"用户" summary:"团队人数"`
}

type TeamCountRes struct {
	Direct   int `json:"direct"   dc:"直接分享人数"`
	Indirect int `json:"indirect"   dc:"间接分享人数"`
}

// 团队列表
type TeamListReq struct {
	g.Meta `path:"/member/teamList" method:"get" tags:"用户" summary:"团队列表"`
	apiin.TeamListInp
}

type TeamListRes struct {
	form.PageRes
	List []*apiin.TeamListModel `json:"list"   dc:"数据列表"`
}
